<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SSDP Help: XVec2d</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SSDP Help<span id="projectnumber">&#160;2.04.01</span>
   </div>
   <div id="projectbrief">仅供测试</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.3 -->
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',false,false,'search.php','搜索');
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-static-attribs">静态 Public 属性</a> &#124;
<a href="../../d8/d99/struct_x_vec2d-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">XVec2d</div></div>
</div><!--header-->
<div class="contents">

<p>2维向量  
 <a href="../../d5/d9a/struct_x_vec2d.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="../../de/d62/_x_vec2d_8h_source.html">XVec2d.h</a>&gt;</code></p>
<div class="dynheader">
类 XVec2d 继承关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d2/d6a/struct_x_vec2d__inherit__graph.png" border="0" usemap="#a_x_vec2d_inherit__map" alt="Inheritance graph"/></div>
<map name="a_x_vec2d_inherit__map" id="a_x_vec2d_inherit__map">
<area shape="rect" title="2维向量" alt="" coords="9,80,75,107"/>
<area shape="rect" href="../../d4/d00/struct_x_point2d.html" title="2D平面点类" alt="" coords="5,5,79,32"/>
</map>
<center><span class="legend">[<a href="../../graph_legend.html">图例</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ac2b762d19ca09f174929cf39cc0d9d32"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d9a/struct_x_vec2d.html#ac2b762d19ca09f174929cf39cc0d9d32">Init</a> (double ax, double ay)</td></tr>
<tr class="memdesc:ac2b762d19ca09f174929cf39cc0d9d32"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化数据  <a href="../../d5/d9a/struct_x_vec2d.html#ac2b762d19ca09f174929cf39cc0d9d32">更多...</a><br /></td></tr>
<tr class="separator:ac2b762d19ca09f174929cf39cc0d9d32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d57b664890aa3fb9ebc7b6f6df98c00"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d9a/struct_x_vec2d.html#a2d57b664890aa3fb9ebc7b6f6df98c00">Init</a> (XPoint2dCR point)</td></tr>
<tr class="memdesc:a2d57b664890aa3fb9ebc7b6f6df98c00"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化数据  <a href="../../d5/d9a/struct_x_vec2d.html#a2d57b664890aa3fb9ebc7b6f6df98c00">更多...</a><br /></td></tr>
<tr class="separator:a2d57b664890aa3fb9ebc7b6f6df98c00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e7b9fc1b155c83e3a937a8bf1cabbba"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d9a/struct_x_vec2d.html#a8e7b9fc1b155c83e3a937a8bf1cabbba">Normalize</a> (XVec2dCR vector)</td></tr>
<tr class="memdesc:a8e7b9fc1b155c83e3a937a8bf1cabbba"><td class="mdescLeft">&#160;</td><td class="mdescRight">向量单位化  <a href="../../d5/d9a/struct_x_vec2d.html#a8e7b9fc1b155c83e3a937a8bf1cabbba">更多...</a><br /></td></tr>
<tr class="separator:a8e7b9fc1b155c83e3a937a8bf1cabbba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4afc00a84ed2959d34a345041c6bd067"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d9a/struct_x_vec2d.html#a4afc00a84ed2959d34a345041c6bd067">Normalize</a> ()</td></tr>
<tr class="memdesc:a4afc00a84ed2959d34a345041c6bd067"><td class="mdescLeft">&#160;</td><td class="mdescRight">单位化  <a href="../../d5/d9a/struct_x_vec2d.html#a4afc00a84ed2959d34a345041c6bd067">更多...</a><br /></td></tr>
<tr class="separator:a4afc00a84ed2959d34a345041c6bd067"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68f707da325ddb98d88e801aa80676d9"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d9a/struct_x_vec2d.html#a68f707da325ddb98d88e801aa80676d9">AngleTo</a> (XVec2dCR vector2) const</td></tr>
<tr class="memdesc:a68f707da325ddb98d88e801aa80676d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">向量角  <a href="../../d5/d9a/struct_x_vec2d.html#a68f707da325ddb98d88e801aa80676d9">更多...</a><br /></td></tr>
<tr class="separator:a68f707da325ddb98d88e801aa80676d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70bac20c90710e3d431535f71690c9bb"><td class="memItemLeft" align="right" valign="top"><a id="a70bac20c90710e3d431535f71690c9bb" name="a70bac20c90710e3d431535f71690c9bb"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>XVec2d</b> (const <a class="el" href="../../d4/d00/struct_x_point2d.html">XPoint2d</a> &amp;p)</td></tr>
<tr class="separator:a70bac20c90710e3d431535f71690c9bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3dbf1a4af92bf0b3703746c2e90a009"><td class="memItemLeft" align="right" valign="top"><a id="ae3dbf1a4af92bf0b3703746c2e90a009" name="ae3dbf1a4af92bf0b3703746c2e90a009"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>XVec2d</b> (double x0, double y0)</td></tr>
<tr class="separator:ae3dbf1a4af92bf0b3703746c2e90a009"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0230d8098a2b2d228f3611b30f8c4b74"><td class="memItemLeft" align="right" valign="top"><a id="a0230d8098a2b2d228f3611b30f8c4b74" name="a0230d8098a2b2d228f3611b30f8c4b74"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>XVec2d</b> (FVec2dCR p)</td></tr>
<tr class="separator:a0230d8098a2b2d228f3611b30f8c4b74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b3a656ed32a287bcea71deeb2f6cc3f"><td class="memItemLeft" align="right" valign="top"><a id="a2b3a656ed32a287bcea71deeb2f6cc3f" name="a2b3a656ed32a287bcea71deeb2f6cc3f"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>Add</b> (XVec2dCR rhls)</td></tr>
<tr class="separator:a2b3a656ed32a287bcea71deeb2f6cc3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b419804971de65a8f2a0b6d07aee843"><td class="memItemLeft" align="right" valign="top"><a id="a5b419804971de65a8f2a0b6d07aee843" name="a5b419804971de65a8f2a0b6d07aee843"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>Add</b> (XVec2dCR rhls1, XVec2dCR rhls2)</td></tr>
<tr class="separator:a5b419804971de65a8f2a0b6d07aee843"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9c39467d4baf9de62b9805b516e0ab5"><td class="memItemLeft" align="right" valign="top"><a id="af9c39467d4baf9de62b9805b516e0ab5" name="af9c39467d4baf9de62b9805b516e0ab5"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>AddScale</b> (double s, XVec2dCR rhls)</td></tr>
<tr class="separator:af9c39467d4baf9de62b9805b516e0ab5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af35f306e795b7c1b7e55a7cd4efe34f3"><td class="memItemLeft" align="right" valign="top"><a id="af35f306e795b7c1b7e55a7cd4efe34f3" name="af35f306e795b7c1b7e55a7cd4efe34f3"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>AddScale</b> (XVec2dCR rhls, double s)</td></tr>
<tr class="separator:af35f306e795b7c1b7e55a7cd4efe34f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1dd109a609d9acef82aa6ec5d7ace181"><td class="memItemLeft" align="right" valign="top"><a id="a1dd109a609d9acef82aa6ec5d7ace181" name="a1dd109a609d9acef82aa6ec5d7ace181"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>Barycentric</b> (XVec2dCR rhls1, XVec2dCR rhls2, XVec2dCR rhls3, double b, double c)</td></tr>
<tr class="separator:a1dd109a609d9acef82aa6ec5d7ace181"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac33666f05e706ca30860d498b2800cef"><td class="memItemLeft" align="right" valign="top"><a id="ac33666f05e706ca30860d498b2800cef" name="ac33666f05e706ca30860d498b2800cef"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>Bezier</b> (XVec2dCR rhls1, XVec2dCR rhls2, XVec2dCR rhls3, double u)</td></tr>
<tr class="separator:ac33666f05e706ca30860d498b2800cef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ef38fd0122d38b1e1c82be6329d93a2"><td class="memItemLeft" align="right" valign="top"><a id="a4ef38fd0122d38b1e1c82be6329d93a2" name="a4ef38fd0122d38b1e1c82be6329d93a2"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>Bezier</b> (XVec2dCR rhls1, XVec2dCR rhls2, XVec2dCR rhls3, XVec2dCR rhls4, double u)</td></tr>
<tr class="separator:a4ef38fd0122d38b1e1c82be6329d93a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73238b3bc5e09e4924701530b37913ca"><td class="memItemLeft" align="right" valign="top"><a id="a73238b3bc5e09e4924701530b37913ca" name="a73238b3bc5e09e4924701530b37913ca"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>Bilinear</b> (XVec2dCR rhls1, XVec2dCR rhls2, XVec2dCR rhls3, XVec2dCR rhls4, double u, double v)</td></tr>
<tr class="separator:a73238b3bc5e09e4924701530b37913ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa63b401886c44241ac2c078afafcdf32"><td class="memItemLeft" align="right" valign="top"><a id="aa63b401886c44241ac2c078afafcdf32" name="aa63b401886c44241ac2c078afafcdf32"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>Blend</b> (XVec2dCR rhls1, XVec2dCR rhls2, double t, double u)</td></tr>
<tr class="separator:aa63b401886c44241ac2c078afafcdf32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af637704d15ed0439d595e053b3837aec"><td class="memItemLeft" align="right" valign="top"><a id="af637704d15ed0439d595e053b3837aec" name="af637704d15ed0439d595e053b3837aec"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>Blend</b> (XVec2dCR rhls1, XVec2dCR rhls2, double u)</td></tr>
<tr class="separator:af637704d15ed0439d595e053b3837aec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00c79139fafea2a62ced6b0dabe05242"><td class="memItemLeft" align="right" valign="top"><a id="a00c79139fafea2a62ced6b0dabe05242" name="a00c79139fafea2a62ced6b0dabe05242"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>Blend</b> (XVec2dCR rhls1, XVec2dCR rhls2, XVec2dCR rhls3, double a, double b, double c)</td></tr>
<tr class="separator:a00c79139fafea2a62ced6b0dabe05242"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b730e33cfb4b7c6d6640c5869d759ba"><td class="memItemLeft" align="right" valign="top"><a id="a7b730e33cfb4b7c6d6640c5869d759ba" name="a7b730e33cfb4b7c6d6640c5869d759ba"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>Blend</b> (XVec2dCR rhls1, XVec2dCR rhls2, XVec2dCR rhls3, XVec2dCR rhls4, double a, double b, double c, double d)</td></tr>
<tr class="separator:a7b730e33cfb4b7c6d6640c5869d759ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a5099d4006749cfbf176de44a304121"><td class="memItemLeft" align="right" valign="top"><a id="a2a5099d4006749cfbf176de44a304121" name="a2a5099d4006749cfbf176de44a304121"></a>
__forceinline double&#160;</td><td class="memItemRight" valign="bottom"><b>Dot</b> (XVec2dCR rhls)</td></tr>
<tr class="separator:a2a5099d4006749cfbf176de44a304121"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a887fe636b3c0334851137736a5e9495e"><td class="memItemLeft" align="right" valign="top"><a id="a887fe636b3c0334851137736a5e9495e" name="a887fe636b3c0334851137736a5e9495e"></a>
__forceinline bool&#160;</td><td class="memItemRight" valign="bottom"><b>InRange</b> (XVec2dCR min, XVec2dCR max)</td></tr>
<tr class="separator:a887fe636b3c0334851137736a5e9495e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a669e4cb01300f0d1f28c1996fd710667"><td class="memItemLeft" align="right" valign="top"><a id="a669e4cb01300f0d1f28c1996fd710667" name="a669e4cb01300f0d1f28c1996fd710667"></a>
__forceinline double&#160;</td><td class="memItemRight" valign="bottom"><b>Length</b> ()</td></tr>
<tr class="separator:a669e4cb01300f0d1f28c1996fd710667"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a215ed26956dc65b210b896c520eab763"><td class="memItemLeft" align="right" valign="top"><a id="a215ed26956dc65b210b896c520eab763" name="a215ed26956dc65b210b896c520eab763"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>Mid</b> (XVec2dCR rhls1, XVec2dCR rhls2)</td></tr>
<tr class="separator:a215ed26956dc65b210b896c520eab763"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96b593d57fc0e102bb870fce21282263"><td class="memItemLeft" align="right" valign="top"><a id="a96b593d57fc0e102bb870fce21282263" name="a96b593d57fc0e102bb870fce21282263"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>Mul</b> (XVec2dCR rhls)</td></tr>
<tr class="separator:a96b593d57fc0e102bb870fce21282263"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab204591c3767b4aa997910e067dac1e"><td class="memItemLeft" align="right" valign="top"><a id="aab204591c3767b4aa997910e067dac1e" name="aab204591c3767b4aa997910e067dac1e"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>Mul</b> (XVec2dCR rhls1, XVec2dCR rhls2)</td></tr>
<tr class="separator:aab204591c3767b4aa997910e067dac1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace8641f570ed09494538bdbe11de4ded"><td class="memItemLeft" align="right" valign="top"><a id="ace8641f570ed09494538bdbe11de4ded" name="ace8641f570ed09494538bdbe11de4ded"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>Neg</b> ()</td></tr>
<tr class="separator:ace8641f570ed09494538bdbe11de4ded"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3dd7e56be0eed3ef61eae42005fa0c8d"><td class="memItemLeft" align="right" valign="top"><a id="a3dd7e56be0eed3ef61eae42005fa0c8d" name="a3dd7e56be0eed3ef61eae42005fa0c8d"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>Neg</b> (XVec2dCR rhls)</td></tr>
<tr class="separator:a3dd7e56be0eed3ef61eae42005fa0c8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28f330cf4331cb4604e41f772bef19e0"><td class="memItemLeft" align="right" valign="top"><a id="a28f330cf4331cb4604e41f772bef19e0" name="a28f330cf4331cb4604e41f772bef19e0"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>Normalize</b> ()</td></tr>
<tr class="separator:a28f330cf4331cb4604e41f772bef19e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f8f9ff3edf9738f99a30855234a8960"><td class="memItemLeft" align="right" valign="top"><a id="a0f8f9ff3edf9738f99a30855234a8960" name="a0f8f9ff3edf9738f99a30855234a8960"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>Scale</b> (double s)</td></tr>
<tr class="separator:a0f8f9ff3edf9738f99a30855234a8960"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d4db86d629aaee5a16fdc4e3ebbc2b7"><td class="memItemLeft" align="right" valign="top"><a id="a4d4db86d629aaee5a16fdc4e3ebbc2b7" name="a4d4db86d629aaee5a16fdc4e3ebbc2b7"></a>
__forceinline double&#160;</td><td class="memItemRight" valign="bottom"><b>Sense</b> (XVec2dCR rhls)</td></tr>
<tr class="separator:a4d4db86d629aaee5a16fdc4e3ebbc2b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc12b35babed96e513ed806bf5328990"><td class="memItemLeft" align="right" valign="top"><a id="acc12b35babed96e513ed806bf5328990" name="acc12b35babed96e513ed806bf5328990"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>SetRange</b> (XVec2dR min, XVec2dR max)</td></tr>
<tr class="separator:acc12b35babed96e513ed806bf5328990"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84a1c2c533c5a801ff6047a04f64b019"><td class="memItemLeft" align="right" valign="top"><a id="a84a1c2c533c5a801ff6047a04f64b019" name="a84a1c2c533c5a801ff6047a04f64b019"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>Sub</b> (XVec2dCR rhls)</td></tr>
<tr class="separator:a84a1c2c533c5a801ff6047a04f64b019"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f236cfca5636037e2057c81f15d8b4e"><td class="memItemLeft" align="right" valign="top"><a id="a2f236cfca5636037e2057c81f15d8b4e" name="a2f236cfca5636037e2057c81f15d8b4e"></a>
__forceinline void&#160;</td><td class="memItemRight" valign="bottom"><b>Sub</b> (XVec2dCR rhls1, XVec2dCR rhls2)</td></tr>
<tr class="separator:a2f236cfca5636037e2057c81f15d8b4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_struct_x_point2d"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_struct_x_point2d')"><img src="../../closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="../../d4/d00/struct_x_point2d.html">XPoint2d</a></td></tr>
<tr class="memitem:ace60310ee43708d3321b1191fdc5b5fc inherit pub_methods_struct_x_point2d"><td class="memItemLeft" align="right" valign="top"><a id="ace60310ee43708d3321b1191fdc5b5fc" name="ace60310ee43708d3321b1191fdc5b5fc"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Init</b> (double x, double y)</td></tr>
<tr class="separator:ace60310ee43708d3321b1191fdc5b5fc inherit pub_methods_struct_x_point2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28aa2c95b12ebb5dd22ce60d285988f1 inherit pub_methods_struct_x_point2d"><td class="memItemLeft" align="right" valign="top"><a id="a28aa2c95b12ebb5dd22ce60d285988f1" name="a28aa2c95b12ebb5dd22ce60d285988f1"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Init</b> (XPoint3dCR source)</td></tr>
<tr class="separator:a28aa2c95b12ebb5dd22ce60d285988f1 inherit pub_methods_struct_x_point2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99f30e2d2f4a6dc558182e609e826b05 inherit pub_methods_struct_x_point2d"><td class="memItemLeft" align="right" valign="top"><a id="a99f30e2d2f4a6dc558182e609e826b05" name="a99f30e2d2f4a6dc558182e609e826b05"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>InitDisconnect</b> ()</td></tr>
<tr class="separator:a99f30e2d2f4a6dc558182e609e826b05 inherit pub_methods_struct_x_point2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa90d8f941ef00db2cdefa3a02bc4f92f inherit pub_methods_struct_x_point2d"><td class="memItemLeft" align="right" valign="top"><a id="aa90d8f941ef00db2cdefa3a02bc4f92f" name="aa90d8f941ef00db2cdefa3a02bc4f92f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Scale</b> (XPoint2dCR source, double s)</td></tr>
<tr class="separator:aa90d8f941ef00db2cdefa3a02bc4f92f inherit pub_methods_struct_x_point2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84a3e550cd6e7bcd73ecb68ad983eaea inherit pub_methods_struct_x_point2d"><td class="memItemLeft" align="right" valign="top"><a id="a84a3e550cd6e7bcd73ecb68ad983eaea" name="a84a3e550cd6e7bcd73ecb68ad983eaea"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Scale</b> (double s)</td></tr>
<tr class="separator:a84a3e550cd6e7bcd73ecb68ad983eaea inherit pub_methods_struct_x_point2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ddb3aba993f85f462c7cc23df40b9fa inherit pub_methods_struct_x_point2d"><td class="memItemLeft" align="right" valign="top"><a id="a4ddb3aba993f85f462c7cc23df40b9fa" name="a4ddb3aba993f85f462c7cc23df40b9fa"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Interpolate</b> (XPoint2dCR pnt0, double s, XPoint2dCR point1)</td></tr>
<tr class="separator:a4ddb3aba993f85f462c7cc23df40b9fa inherit pub_methods_struct_x_point2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b56da22e185d6ad6c85c7fd00341138 inherit pub_methods_struct_x_point2d"><td class="memItemLeft" align="right" valign="top"><a id="a1b56da22e185d6ad6c85c7fd00341138" name="a1b56da22e185d6ad6c85c7fd00341138"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><b>Distance</b> (XPoint2dCR point1) const</td></tr>
<tr class="separator:a1b56da22e185d6ad6c85c7fd00341138 inherit pub_methods_struct_x_point2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21de4abf81a07e9dfe1cd6d23a074d7f inherit pub_methods_struct_x_point2d"><td class="memItemLeft" align="right" valign="top"><a id="a21de4abf81a07e9dfe1cd6d23a074d7f" name="a21de4abf81a07e9dfe1cd6d23a074d7f"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>AlmostEqual</b> (<a class="el" href="../../d4/d00/struct_x_point2d.html">XPoint2d</a> const &amp;dataB) const</td></tr>
<tr class="separator:a21de4abf81a07e9dfe1cd6d23a074d7f inherit pub_methods_struct_x_point2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a9485b707586fb43f7b839c879dbc8a22"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../d5/d9a/struct_x_vec2d.html">XVec2d</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d9a/struct_x_vec2d.html#a9485b707586fb43f7b839c879dbc8a22">From</a> (double x, double y)</td></tr>
<tr class="memdesc:a9485b707586fb43f7b839c879dbc8a22"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建函数  <a href="../../d5/d9a/struct_x_vec2d.html#a9485b707586fb43f7b839c879dbc8a22">更多...</a><br /></td></tr>
<tr class="separator:a9485b707586fb43f7b839c879dbc8a22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0c38cf62f0113e30013b94f3bcb6123"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../d5/d9a/struct_x_vec2d.html">XVec2d</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d9a/struct_x_vec2d.html#ab0c38cf62f0113e30013b94f3bcb6123">From</a> (XPoint2dCR point)</td></tr>
<tr class="memdesc:ab0c38cf62f0113e30013b94f3bcb6123"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建函数  <a href="../../d5/d9a/struct_x_vec2d.html#ab0c38cf62f0113e30013b94f3bcb6123">更多...</a><br /></td></tr>
<tr class="separator:ab0c38cf62f0113e30013b94f3bcb6123"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_struct_x_point2d"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_struct_x_point2d')"><img src="../../closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="../../d4/d00/struct_x_point2d.html">XPoint2d</a></td></tr>
<tr class="memitem:a1e25db7391cdaf862c645f24bee244cb inherit pub_static_methods_struct_x_point2d"><td class="memItemLeft" align="right" valign="top"><a id="a1e25db7391cdaf862c645f24bee244cb" name="a1e25db7391cdaf862c645f24bee244cb"></a>
static <a class="el" href="../../d4/d00/struct_x_point2d.html">XPoint2d</a>&#160;</td><td class="memItemRight" valign="bottom"><b>From</b> (FPoint2dCR fPoint)</td></tr>
<tr class="separator:a1e25db7391cdaf862c645f24bee244cb inherit pub_static_methods_struct_x_point2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afee14bc14333d1c2192d501648a05cac inherit pub_static_methods_struct_x_point2d"><td class="memItemLeft" align="right" valign="top"><a id="afee14bc14333d1c2192d501648a05cac" name="afee14bc14333d1c2192d501648a05cac"></a>
static <a class="el" href="../../d4/d00/struct_x_point2d.html">XPoint2d</a>&#160;</td><td class="memItemRight" valign="bottom"><b>From</b> (double ax, double ay)</td></tr>
<tr class="separator:afee14bc14333d1c2192d501648a05cac inherit pub_static_methods_struct_x_point2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5a2322de398e9bd0645dc649e3fb9c7 inherit pub_static_methods_struct_x_point2d"><td class="memItemLeft" align="right" valign="top"><a id="ad5a2322de398e9bd0645dc649e3fb9c7" name="ad5a2322de398e9bd0645dc649e3fb9c7"></a>
static <a class="el" href="../../d4/d00/struct_x_point2d.html">XPoint2d</a>&#160;</td><td class="memItemRight" valign="bottom"><b>FromZero</b> ()</td></tr>
<tr class="separator:ad5a2322de398e9bd0645dc649e3fb9c7 inherit pub_static_methods_struct_x_point2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76bf9792f74f26596103ad8053838f39 inherit pub_static_methods_struct_x_point2d"><td class="memItemLeft" align="right" valign="top"><a id="a76bf9792f74f26596103ad8053838f39" name="a76bf9792f74f26596103ad8053838f39"></a>
static <a class="el" href="../../d4/d00/struct_x_point2d.html">XPoint2d</a>&#160;</td><td class="memItemRight" valign="bottom"><b>From</b> (XPoint3dCR source)</td></tr>
<tr class="separator:a76bf9792f74f26596103ad8053838f39 inherit pub_static_methods_struct_x_point2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f6e00486bc9379482d626c686159f73 inherit pub_static_methods_struct_x_point2d"><td class="memItemLeft" align="right" valign="top"><a id="a4f6e00486bc9379482d626c686159f73" name="a4f6e00486bc9379482d626c686159f73"></a>
static <a class="el" href="../../d4/d00/struct_x_point2d.html">XPoint2d</a>&#160;</td><td class="memItemRight" valign="bottom"><b>FromInterpolate</b> (XPoint2dCR pnt0, double fraction, XPoint2dCR point1)</td></tr>
<tr class="separator:a4f6e00486bc9379482d626c686159f73 inherit pub_static_methods_struct_x_point2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-attribs" name="pub-static-attribs"></a>
静态 Public 属性</h2></td></tr>
<tr class="memitem:a21506af3fae98bc4aeed09e096914089"><td class="memItemLeft" align="right" valign="top"><a id="a21506af3fae98bc4aeed09e096914089" name="a21506af3fae98bc4aeed09e096914089"></a>
static const double&#160;</td><td class="memItemRight" valign="bottom"><b>z</b></td></tr>
<tr class="separator:a21506af3fae98bc4aeed09e096914089"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pub_attribs_struct_x_point2d"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_struct_x_point2d')"><img src="../../closed.png" alt="-"/>&#160;Public 属性 继承自 <a class="el" href="../../d4/d00/struct_x_point2d.html">XPoint2d</a></td></tr>
<tr class="memitem:aa3f54a8adfdf129339346a64fa23f723 inherit pub_attribs_struct_x_point2d"><td class="memItemLeft" align="right" valign="top"><a id="aa3f54a8adfdf129339346a64fa23f723" name="aa3f54a8adfdf129339346a64fa23f723"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><b>x</b></td></tr>
<tr class="separator:aa3f54a8adfdf129339346a64fa23f723 inherit pub_attribs_struct_x_point2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad284e0ba15373f011790333853c45d55 inherit pub_attribs_struct_x_point2d"><td class="memItemLeft" align="right" valign="top"><a id="ad284e0ba15373f011790333853c45d55" name="ad284e0ba15373f011790333853c45d55"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><b>y</b></td></tr>
<tr class="separator:ad284e0ba15373f011790333853c45d55 inherit pub_attribs_struct_x_point2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p >2维向量 </p>
<dl class="section author"><dt>作者</dt><dd>SZEWC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/27 </dd></dl>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a68f707da325ddb98d88e801aa80676d9" name="a68f707da325ddb98d88e801aa80676d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68f707da325ddb98d88e801aa80676d9">&#9670;&nbsp;</a></span>AngleTo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double XVec2d::AngleTo </td>
          <td>(</td>
          <td class="paramtype">XVec2dCR&#160;</td>
          <td class="paramname"><em>vector2</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>向量角 </p>
<p >计算与给定向量的夹角，值在0到pi之间</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">XVec2dCR</td><td>vector2 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>double</dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/14 </dd></dl>

</div>
</div>
<a id="a9485b707586fb43f7b839c879dbc8a22" name="a9485b707586fb43f7b839c879dbc8a22"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9485b707586fb43f7b839c879dbc8a22">&#9670;&nbsp;</a></span>From() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../d5/d9a/struct_x_vec2d.html">XVec2d</a> XVec2d::From </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>创建函数 </p>
<p >根据xy成员创建向量</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">double</td><td>x </td></tr>
    <tr><td class="paramname">double</td><td>y </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="../../d5/d9a/struct_x_vec2d.html" title="2维向量">XVec2d</a></dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/14 </dd></dl>

</div>
</div>
<a id="ab0c38cf62f0113e30013b94f3bcb6123" name="ab0c38cf62f0113e30013b94f3bcb6123"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab0c38cf62f0113e30013b94f3bcb6123">&#9670;&nbsp;</a></span>From() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../d5/d9a/struct_x_vec2d.html">XVec2d</a> XVec2d::From </td>
          <td>(</td>
          <td class="paramtype">XPoint2dCR&#160;</td>
          <td class="paramname"><em>point</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>创建函数 </p>
<p >根据给定点创建到原点的向量</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">XPoint2dCR</td><td>point </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="../../d5/d9a/struct_x_vec2d.html" title="2维向量">XVec2d</a></dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/14 </dd></dl>

</div>
</div>
<a id="ac2b762d19ca09f174929cf39cc0d9d32" name="ac2b762d19ca09f174929cf39cc0d9d32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac2b762d19ca09f174929cf39cc0d9d32">&#9670;&nbsp;</a></span>Init() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XVec2d::Init </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>ax</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>ay</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>初始化数据 </p>
<p >根据xy成员初始化数据</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">double</td><td>ax </td></tr>
    <tr><td class="paramname">double</td><td>ay </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void</dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/14 </dd></dl>

</div>
</div>
<a id="a2d57b664890aa3fb9ebc7b6f6df98c00" name="a2d57b664890aa3fb9ebc7b6f6df98c00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d57b664890aa3fb9ebc7b6f6df98c00">&#9670;&nbsp;</a></span>Init() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XVec2d::Init </td>
          <td>(</td>
          <td class="paramtype">XPoint2dCR&#160;</td>
          <td class="paramname"><em>point</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>初始化数据 </p>
<p >根据给定点到原点初始化数据</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">XPoint2dCR</td><td>point </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void</dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/14 </dd></dl>

</div>
</div>
<a id="a4afc00a84ed2959d34a345041c6bd067" name="a4afc00a84ed2959d34a345041c6bd067"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4afc00a84ed2959d34a345041c6bd067">&#9670;&nbsp;</a></span>Normalize() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double XVec2d::Normalize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>单位化 </p>
<p >单位化至长度为1</p>
<dl class="section return"><dt>返回</dt><dd>double</dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/14 </dd></dl>

</div>
</div>
<a id="a8e7b9fc1b155c83e3a937a8bf1cabbba" name="a8e7b9fc1b155c83e3a937a8bf1cabbba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e7b9fc1b155c83e3a937a8bf1cabbba">&#9670;&nbsp;</a></span>Normalize() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double XVec2d::Normalize </td>
          <td>(</td>
          <td class="paramtype">XVec2dCR&#160;</td>
          <td class="paramname"><em>vector</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>向量单位化 </p>
<p >将给定向量单位化</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">XVec2dCR</td><td>vector </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>double</dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/14 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>D:/doxy/PublicAPI/ATGeometrySet/<a class="el" href="../../de/d62/_x_vec2d_8h_source.html">XVec2d.h</a></li>
<li>D:/doxy/PublicAPI/RenderOpt/<a class="el" href="../../d7/d72/_render_opt_math_8h_source.html">RenderOptMath.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
</small></address>
</body>
</html>
